var unlock={
    methods:{
        cmd_unlock_do:function(){
            if(this.pages[this.activePageIndex].items.filter(item=>{return item.selected}).length<=0) return;            
            this.pages[this.activePageIndex].items.forEach(element => {
                if(element.selected && element.lock){
                    element.lock=false;
                }
            });
        },
        cmd_unlock_active:function(selectCount){
            this.cmdActive['unlock']=selectCount>0;
        }
    }
}

export default unlock;
